<template>
	<uni-popup ref="popupImg" class="navBarPup" type="center" style="width: 100%;">
		<previewImage ref="previewImage" :imgs="imgs" @longPress="longPress" @close="close"></previewImage>
	</uni-popup>
</template>

<script>
	import previewImage from '@/components/kxj-previewImage/kxj-previewImage.vue';


	export default {
		components: {
			previewImage
		}, //注册插件

		data() {
			return {
				imgs: []
			};
		},
		mounted() {
		
		},
		methods: {
			init(url) {
				this.imgs = [url]
				this.$refs.popupImg.open('center')
			},
			close() {
				this.$refs.popupImg.close()
			},
			longPress() {}
		}
	};
</script>

<style>
	.container {}
</style>